<?php // no direct access
	defined('_JEXEC') or die('Restricted access'); 
	$q = "SELECT * FROM #__topbanner";
	$db =& JFactory::getDBO();
	$db->setQuery($q);
	$rs = $db->loadObjectList();
	//var_dump($rs);
	$lg = &JFactory::getLanguage();
	$my_lang = $lg->get('backwardlang');
	$en = "";
	if($my_lang=="english") $en = "en/";
	//echo $en;
?>
<div class="container">
	<div id="demo1" class="webwidget_slideshow_dot">
		<ul>
			<?php 
				if(count($rs)>0){
					for($i=0;$i < count($rs); $i++){
			?>
						<li><a href="#" title="Sky"><img src="<?php echo JURI::base(); ?>images/topbanner/<?php if( $en != "" ) {echo $rs[$i]->image;} else { if($rs[$i]->link != "") {echo $rs[$i]->link;} else { echo $rs[$i]->image; } } ?>" width="407" height="301" alt="slideshow_large"/></a></li>
			<?php 
					}
				}
			?>
		</ul>
		<div style="clear: both"></div>
	</div>
</div>
